from util import route, render_template, jsonify
from util.db import db

bp = route(__name__)

@bp.get("/")
async def home():
    res = db('user').limit(10).as_dict()
    return await render_template('/index/test.html', res=res)


@bp.get("/user")
async def user():
    return jsonify({
        'msg': 'user',
    })